package com.shoubei.cashiedesk.constant;

import android.os.Environment;

import com.shoubei.cashiedesk.bean.Code;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lw on 2018/1/19.
 */

public class Constant {

    /**
     * 打印机类型
     */
    public static List<Code> printTypeList = new ArrayList<Code>();
    public static List<Code> serialList = new ArrayList<Code>();
    public static List<Code> baudList = new ArrayList<Code>();
//        测试
    public static final String REQUEST_BASE_URL = "http://ddy.web.51eagle.com/";
//    public static final String REQUEST_BASE_URL = "http://192.168.0.103:8989/";
//    线上
//    public static final String REQUEST_BASE_URL = "http://catering.api.51shoubei.cn/";

    public static final int CODE = 200;
    public static final int CODEEER = 402;

    /**
     * 欢迎光临图片
     */
    public final static String welcome_pic = "welcome_pic.jpg";
    /**
     * 暂停收银图片
     */
    public final static String pausecashier = "pausecashier.jpg";
    /**
     * 二维码本地存储图片
     */
    public final static String twoCodeBitmap = "twoCodeBitmap.jpg";

    /**
     * 每页数量
     */
    public static final int PAGE_SIZE = 20;

    /**
     * url key
     */
    public static final String CONTENT_URL_KEY = "url";
    /**
     * title key
     */
    public static final String CONTENT_TITLE_KEY = "title";
    /**
     * id key
     */
    public static final String CONTENT_ID_KEY = "id";
    /**
     * cid key
     */
    public static final String CONTENT_CID_KEY = "cid";
    public static final String CONTENT_AUTHOR_KEY = "author";
    public static final String ACCESS_TOKEN = "access_token";
    /**
     * childrenData key
     */
    public static final String CONTENT_CHILDREN_DATA_KEY = "childrenData";
    /**
     * hotFriend key
     */
    public static final String CONTENT_HOT_FRIEND_KEY = "hotFriend";
    /**
     * hot key
     */
    public static final String CONTENT_HOT_KEY = "hotKey";
    /**
     * hot key
     */
    public static final String CONTENT_HOT_NAME_KEY = "hotNameKey";

    /**
     * title key
     */
    public static final String CONTENT_JPUSHI= "jpush";
    public static final String CONTENT_TABLE_NO= "table_no";

    public static final String CONTENT_ORDER_ID= "order_id";

    public static final String SAVE_USER_LOGIN_KEY = "user/login";
    public static final String SAVE_USER_REGISTER_KEY = "user/register";
    public static final String SET_COOKIE_KEY = "set-cookie";

    public static final String SHARED_NAME = "_preferences";
    public static final String USERNAME_KEY = "username";
    public static final String PASSWORD_KEY = "password";
    public static final String LOGIN_KEY = "login";
    public static final String USER_KEY = "user";
    public static final String BANNER_KEY = "banner";
    public static final String ARTICLE_KEY = "article";

    public static final String Token = "82759b865fdd69e27633b5ad4876033c";

    public static final String DINNER = "SNACK";// 正餐DINNER //快餐SANCK

    public static final String LOCALPRINTER_IP = "127.0.0.1";// 本地小票机IP
    public static final String MATCHING_IP = "127.0.0.";// 匹配的本地IP
    // 图片线上地址
    public static String ImageURL = "http://upload.shoubei.com/public_upload/shopcashier/";
    public static String LABELPRINTER_IP = "";// 标签打印机IP

    public static final String receiptTitle = "如需发票请扫描下方二维码";
    /**
     * 订单号生成完成广播
     */
    public static final String CREATE_ORDERNO_DONE = "com.shoubei.CREATE_ORDERNO_DONE";

    /**
     * 网络断开广播
     */
    public static final String networkDisconnect = "com.shoubei.networkDisconnect";

    public static int isTangshi = 0;

    /**
     * 文件缓存路径
     */
    public final static String cachePath = Environment.getExternalStorageDirectory() + "/cashierdesk/image/image/";

    /**
     * 广播推送
     */

    public final  static String NEWTAKEOUT ="com.shoubei.pudataorder";


}
